/**
 *  timer.h
 *  AwkwardCubed - Sys
 *
 *  Date: 21/08/2013
 *
 *  Language: C++
 *
 *  @author Carl mcCaffrey
 *
 */
#ifndef TIMER_H
#define TIMER_H

#include "globals.h"

class Timer
{
	private:
		double secondsPerCount;
		double timeDelta;
		bool stopped;

		int64 baseTime;
		int64 pausedTime;
		int64 stopTime;
		int64 prevTime;
		int64 currentTime;

	public:
		void Init(void);

		float TotalTime(void);
		float DeltaTime(void);

		void Reset(void);
		void Start(void);
		void Stop(void);
		void Tick(void);
};

#endif // TIMER_H